import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

public class SortDemo {

    public static void main(String[] args) {


        List<String> list = new ArrayList<>();
        for (int i = 0; i < 10000; i++) {
            list.add(i + "_" + i);
        }

        list.parallelStream().forEach(s -> {
            System.out.println(s);
            System.out.println(Thread.currentThread().getId());
        });
    }
}
